<?php

class Stock_Model extends CI_Model{
    
    function __construct() {
        parent::__construct();
    }
    
    function getCubicosTotalRollos() {
        $result = $this->db->query('SELECT especie, sum(m3_rollo) AS total FROM rollo UNION SELECT especie FROM rollo');
        return $result->result_array();
    }
}
?>
